package com.itheima_22;

public class AnimalDemo {
    public static void main(String[] args) {
        Jumpping j = new Cat();
        j.jump();
        System.out.println("----------------");

        Animal a = new Cat();
        a.setName("加菲");
        a.setAge(10);
        System.out.println(a.getName() + "," + a.getAge());
        a.eat();
        ((Cat)a).jump();

        Cat c = new Cat("wx", 20);
        c.eat();
        c.jump();

    }
}
